<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>大耳狐 - 用户中心</title>
<link href="__PUBLIC__/css/client_common.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/css/user.css" rel="stylesheet" type="text/css" />

<script src="__PUBLIC__/js/jquery.js" type="text/javascript"></script>

</head>
<body>
{:R('Public/Head','','Widget')}

<div id="content">
	 {:R('Public/MainHead','','Widget')}
	 
	 <div class="contentBox">
		<div class="leftPart6" id="leftMenu">
			{:R('Public/contentMenu','','Widget')}
		</div>
		<div class="rightPart6">
			<div id="typeList" class="message"><span type="1">发件箱({$sendCount})</span><span type="2">收件箱({$getCount})</span><span type="3">系统消息({$sysCount})</span></div>
			<div class="messageList" id="messageList"></div>
		</div>
		<div class="clear_both"></div>
	</div>
</div>

<script>
$("#typeList span").each(function(){
	$(this).bind('click',function(){
		$(this).addClass("spanSelect");
		$(this).nextAll().removeClass("spanSelect");
		$(this).prevAll().removeClass("spanSelect");
		var type = $(this).attr('type');
		messageList(type);
	});
});

$("#typeList span").first().click();

function messageList(type) {
	$.get(
			"__APP__/Content/messageList",
			{type:type},
			function(data){
				$("#messageList").html(data);
			}
		);
}

</script>

{:R('Public/Footer','','Widget')}